<%@ page language="java" pageEncoding="UTF-8" import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
Map<String,String> stringForMap=new HashMap<String,String>();
stringForMap.put("asd", "1");
stringForMap.put("02", "3");
stringForMap.put("af-01", "6");
pageContext.setAttribute("key", stringForMap);
%>
<!-- 
如果是数字，就需要把.修改成[]
如果内容里有特殊字符 -,也需要把.修改成[]
 -->
${key.asd }<br>
${key["02"] }<br>
${key['af-01'] }

</body>
</html>